package com.ltf.entity;

import java.util.Date;

public class XUser {
    private Integer uid;
    private String uname;//用户名
    private String phone;//账号
    private String pwd;//密码
    private String role;//角色
    private String pic;//图片ID
    private Integer sex;//性别
    private Date birth;//生日
    private Integer grade;//年级
    private Double good;//优秀教师，学生
    private Integer isdel;
    private Clz clz;//班级

    public XUser() {
        this.clz=new Clz();
    }

    public int getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    public double getGood() {
        return good;
    }

    public void setGood(Double good) {
        this.good = good;
    }

    public Clz getClz() {
        return clz;
    }

    public void setClz(Clz clz) {
        this.clz = clz;
    }

    public Integer getIsdel() {
        return isdel;
    }

    public void setIsdel(Integer isdel) {
        this.isdel = isdel;
    }

    @Override
    public String toString() {
        return "XUser{" +
                "uid=" + uid +
                ", uname='" + uname + '\'' +
                ", phone='" + phone + '\'' +
                ", pwd='" + pwd + '\'' +
                ", role='" + role + '\'' +
                ", pic='" + pic + '\'' +
                ", sex=" + sex +
                ", birth=" + birth +
                ", grade=" + grade +
                ", good=" + good +
                ", isdel=" + isdel +
                ", clz=" + clz +
                '}';
    }
}
